const request = require("./http.js");
//import Toast from '../miniprogram_npm/@vant/weapp/dist/toast/toast';
// const Toast =require('../miniprogram_npm/@vant/weapp/toast/toast.js')

//登录
var login = function (data, callback) {
  request({
    url: "/mall/index/login/",
    method: "post",
    data: data,
    success: function (res) {
      console.log('login====================',data,res)
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//首页热销商品列表
var getHostProduct = function (data, callback) {
  request({
    url: "/mall/tbSpu/getHostProduct",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//根据spuId查询商品详情
var getItemDetail = function (id, customerId,callback) {
  request({
    url: "/mall/tbSpu/getItemDetail?spuId=" + id+"&customerId="+customerId,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//根据spuId获取sku集合
var getSku = function (id, callback) {
  request({
    url: "/mall/tbSku/getSku?spuId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取广告列表
var getbannerList = function (data,callback) {
  request({
    url: "/mall/tbBanner/queryList",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//服务信息列表(不分页)
var getserviceList = function (callback) {
  request({
    url: "/mall/dicAfterservice/list",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//添加购物车内容
var addcart = function (data, callback) {
  request({
    url: "/mall/cart/addCart",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取已完成数量
var getcomplete = function (id, callback) {
  request({
    url: "/mall/tbOrder/statusFour?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取钻石数量
var getdiamondNum = function (id, callback) {
  request({
    url: "/mall/home/scort?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取待收货数量
var getwaitNum = function (id, callback) {
  request({
    url: "/mall/tbOrder/statusTwo?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取待付款数量
var getwaitPayNum = function (id, callback) {
  request({
    url: "/mall/tbOrder/statusNoe?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取已结算金额
var getCLSDNum = function (id, callback) {
  request({
    url: "/mall/tbOrder/settled?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取累计收益金额
var getearnings = function (id, callback) {
  request({
    url: "/mall/tbOrder/profit?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取未结算金额
var getNoSettlement = function (id, callback) {
  request({
    url: "/mall/tbOrder/unsettled?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取代理所有数据
var getDicLevel = function (callback) {
  request({
    url: "/mall/level/getDicLevel",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//新增代理
var applyAgent = function (data, callback) {
  request({
    url: "/mall/agent/addAgent",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//根据客户id查询代理详情
var getAgentStatus = function (id, callback) {
  request({
    url: "/mall/agent/queryAgentByCustomerId?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//根据用户标识查询购物车列表
var cartList = function (id = 110, callback) {
  request({
    url: "/mall/cart/getCartList?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//删除购物车内容
var deleteCart = function (id, callback) {
  request({
    url: "/mall/cart/delete?id=" + id,
    method: "delete",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//修改购物车信息
var updateCartInfo = function (data, callback) {
  request({
    url: "/mall/cart/updateCart",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//查询地址(根据客户id)
var getAddressList = function (id, callback) {
  request({
    url: "/mall/tbCustomeraddress/getAddress?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};

var signIn = function (id, callback) {
  request({
    url: "/mall/tbcheckpoint/selectone?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//添加地址
var addAddress = function (data, callback) {
  request({
    url: "/mall/tbCustomeraddress/add",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//修改地址
var updateAddrss = function (data, callback) {
  request({
    url: "/mall/tbCustomeraddress/update",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//删除地址
var deleteAddress = function (id, callback) {
  request({
    url: "/mall/tbCustomeraddress/delete/" + id,
    method: "delete",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//支付
var payment = function (data, callback) {
  request({
    url: "/mall/pay/wxpay",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);

      // wx.showToast({
      //   title: err.errMsg,
      //   icon: "none",
      //   duration: 2000,
      // });
    },
  });
};
//查询下线门店
var getStoreList = function (callback) {
  request({
    url: "/mall/store/list",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
var getPosterList = function (data, callback) {
  request({
    url: "/mall/picLibrary/list",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};

var getAreaList = function (id, callback) {
  request({
    url: "/mall/tbArea/list?id=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//提交订单
var commitOrder = function (data, callback) {
  debugger;
  request({
    url: "/mall/tbOrder/commitOrder",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//根据客户id获取默认收货地址
var getdefaultAddress = function (id, callback) {
  request({
    url: "/mall/tbCustomeraddress/getDefaultAddress?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//我的订单列表
var getTbOrderList = function (data, callback) {
  request({
    url: "/mall/tbOrder/list",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//订单确认收货
var confirmReceipt = function (data, callback) {
  request({
    url: "/mall/tbOrder/confirmReceipt",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//取消，关闭，删除订单
var cancleTbOrder = function (data, callback) {
  request({
    url: "/mall/tbOrder/orderCancle",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//申请退款
var applyRefund = function (data, callback) {
  request({
    url: "/mall/tbReturnapp/commitReturn",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//我的用户

var mineUsers = function (data, callback) {
  request({
    url: "/mall/tbCustomer/getMyUserList?parentId=" + data,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
var getUserQRCode = function (data, callback) {
  request({
    url: '/mall/owner/code',
    data: data,
    method: 'post',
    success: function (res) {
      //console.log(res);
      if(res.code=='B0001'){
        wx.showToast({
          title: '二维码生成失败',
        })
        return
      }
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//我的钻石

var mineDiamondnum = function (data, callback) {
  request({
    url: "/mall/tbCustomer/getScordByCustomerId?customerId=" + data,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//我的钻石列表
var mineDiamondnumList = function (data, callback) {
  request({
    url: "/mall/home/select/" + data,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//获取下个代理等级名称、数量
var getAgentinfo = function (id, callback) {
  request({
    url: "/mall/level/getUpgradeNum?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//查询我卖出的数据
var getSalesNum = function (id, callback) {
  request({
    url: "/mall/tbOrder/getNumSum?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//订单详情（退款详情）
var orderDetail = function (id, callback) {
  request({
    url: "/mall/tbOrder/detail?orderId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//我的收益

var myIncome = function (data, callback) {
  request({
    url: "/mall/tbCustomerreward/selectone",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      console.log(err);
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
};
//判断今日是否签到
var isSign = function(id,callback){
  request({
    url: "/mall/tbcheckpoint/queryCheck?customerId=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//获取签到状态
var getSignStatus = function(callback){
  request({
    url: "/mall/sing/queryStatus",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//获取手机号
var getPhone = function(data,callback){
  request({
    url: "/mall/index/phone",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//获取我的代理等级名称
var getAgentName = function(id,callback){
  request({
    url: "/mall/tbCustomer/queryLevelName?id=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//客户详情
var getcustomerDetail = function(id,callback){
  request({
    url: "/mall/tbCustomer/queryDetails?id=" + id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//查询物流及收货信息
var getLogistics = function(id,callback){
  request({
    url: "/mall/logisticsInformation/queryList?ordercode="+ id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//通过客户Id查询是否申请过代理
var getAgentok = function(id,callback){
  request({
    url: "/mall/agent/isAgent?customerId="+ id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//通过skuID 和 省份id查询 运费
var getCarriage = function(data,callback){
  request({
    url: "/mall/tbPostage/freight",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//一级商品类目查询
var getcategoryList1= function(callback){
  request({
    url: "/mall/category/list1",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//二级商品类目查询
var getcategoryList2= function(id,callback){
  request({
    url: "/mall/category/list2?id="+id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//通过商品类目查询商品
var getProductByCategory = function(data,callback){
  request({
    url: "/mall/tbSpu/getProductByCategory",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//购物车提交订单
var commitOrderMul = function(data,callback,fail){
  //debugger;
  request({
    url: "/mall/tbOrder/commitOrder",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      fail && fail()
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//根据产品名称搜索
var getListBytit = function(data,callback){
  request({
    url: "/mall/tbSpu/querySpuByspuTitle",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
//查询热销商品
var getSelectIsHot= function(callback){
  request({
    url: "/mall/tbSpu/selectIdImages",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
var getNewCoupon= function(callback){
  request({
    url: "/mall/coupon/getNewCoupon",
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
var sharegoods = function(id,callback){
  request({
    url: "/mall/transient/insertIntegral?customerId="+id,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}
var getshowModel = function(text,callback){
  request({
    url: "/mall/getUserFunction?ufModule="+text,
    method: "get",
    success: function (res) {
      callback(res);
    },
    fail: function (err) {
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}


var getStore = function(data,callback){
  request({
    url: "/mall/store/list",
    method: "post",
    data: {queryRequest: {pageNum: 1, pageSize: 2000}},
    success: function (res) {
      callback(res);
    },
    fail: function (err) {      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}


var getBalanceByCosId = function(data,callback){
  request({
    url: "/mall/getBalanceByCosId",
    method: "post",
    data: data,
    success: function (res) {
      callback(res);
    },
    fail: function (err) {      
      wx.showToast({
        title: err.errMsg,
        icon: "none",
        duration: 2000,
      });
    },
  });
}



module.exports = {
  getBalanceByCosId,
  login: login, //登录
  getHostProduct: getHostProduct, //首页热销商品列表
  getItemDetail: getItemDetail, //根据spuId查询商品详情
  getSku: getSku, //根据spuId获取sku集合
  getbannerList: getbannerList, //获取广告列表
  getserviceList: getserviceList, //服务信息列表(不分页)
  addcart: addcart, //添加购物车内容
  cartList: cartList, //根据用户标识查询购物车列表
  deleteCart: deleteCart, //删除购物车内容
  updateCartInfo:updateCartInfo,//修改购物车信息
  getDicLevel: getDicLevel, //获取代理所有数据
  applyAgent: applyAgent, //新增代理
  getAgentStatus: getAgentStatus, //根据客户id查询代理详情
  getcomplete: getcomplete, //获取已完成数量
  getdiamondNum: getdiamondNum, //获取钻石数量
  getwaitNum: getwaitNum, //获取待收货数量
  getwaitPayNum: getwaitPayNum, //获取待付款数量
  getCLSDNum: getCLSDNum, //获取已结算金额
  getearnings: getearnings, //获取累计收益金额
  getNoSettlement: getNoSettlement, //获取未结算金额
  signIn: signIn, //签到
  getPosterList: getPosterList, //获取海报列表
  getAreaList: getAreaList, //获取省市区列表集合
  getAddressList: getAddressList, //查询地址(根据客户id)
  addAddress: addAddress, //添加地址
  updateAddrss: updateAddrss, //修改地址
  deleteAddress: deleteAddress, //删除地址
  getUserQRCode: getUserQRCode, //获取用户二维码
  getdefaultAddress: getdefaultAddress, //根据客户id获取默认收货地址
  payment: payment, //支付
  commitOrder: commitOrder, //提交订单
  getStoreList: getStoreList, //查询下线门店
  getTbOrderList: getTbOrderList, //获取订单列表
  cancleTbOrder: cancleTbOrder, //取消，关闭，删除订单
  confirmReceipt: confirmReceipt, //订单确认收货 （交易完成）
  getStore:getStore,//获取门店列表（新）

  applyRefund: applyRefund, //申请退款

  mineUsers: mineUsers, // 我的用户
  mineDiamondnum: mineDiamondnum, //我的钻石
  mineDiamondnumList: mineDiamondnumList, //我的钻石列表

  getAgentinfo: getAgentinfo, //获取下个代理等级名称、数量
  getSalesNum: getSalesNum, //查询我卖出的数据

  orderDetail: orderDetail, //订单详情（退款详情）
  myIncome: myIncome, //我的收益
  isSign:isSign,//判断今日是否签到
  getSignStatus:getSignStatus,//获取签到状态
  getPhone:getPhone,//获取手机号
  getAgentName:getAgentName,//获取我的代理等级名称

  getcustomerDetail:getcustomerDetail,//客户详情
  getLogistics:getLogistics,//查询物流及收货信息
  getAgentok:getAgentok,//通过客户Id查询是否申请过代理

  getCarriage:getCarriage,//通过skuID 和 省份id查询 运费 

  getcategoryList1:getcategoryList1,//一级商品类目查询
  getcategoryList2:getcategoryList2,//二级商品类目查询
  getProductByCategory:getProductByCategory,//通过商品类目查询商品
  commitOrderMul:commitOrderMul,// 购物车提交订单
  getListBytit:getListBytit,//根据产品名称搜索
  getSelectIsHot:getSelectIsHot,//查询热销商品
  getNewCoupon:getNewCoupon,//获取最新优惠卷
  sharegoods:sharegoods,//分享接口
  getshowModel:getshowModel,//获取显示模块
};
